﻿using TrackSystem.Entities.Extensions;

namespace TrackSystem.Entities.Attr
{
    /// <summary>
    /// 从站属性定义
    /// </summary>
    public class SlaveAttr
    {
        /// <summary>
        /// 属性变量初始化
        /// </summary>
            public static List<ParamsBase> attrs = new List<ParamsBase>
            {
                new(0, "Enable", "从站启用状态", false, DataTypeEnum.BOOLEAN),
                new(1, "Succ", "成功次数", true, DataTypeEnum.INTEGER),
                new(2, "Fail", "失败次数", true, DataTypeEnum.INTEGER),
                new(3, "Lapse", "通信时延", true, DataTypeEnum.INTEGER),
                new(4, "Master", "连接主站数目", true, DataTypeEnum.INTEGER),
                new(5, "Rx", "发送帧", true, DataTypeEnum.STRING),
                new(6, "Tx", "接收帧", true, DataTypeEnum.STRING),
            };
    }
}
